/**
 * 
 */
package com.zxc.disruptor;

import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.WorkHandler;

/**
 * @author admin
 *
 */
public class LongEventConsumer implements EventHandler<LongEvent>,WorkHandler<LongEvent> {

	
	@Override
	public void onEvent(LongEvent arg0, long arg1, boolean arg2) throws Exception {
		System.out.println(arg0.getValue()+","+arg1+","+arg2); 
	}

	@Override
	public void onEvent(LongEvent event) throws Exception {
		System.out.println(event.getValue()); 
	}

}
